package com.weasing.res.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * WxRole entity. @author MyEclipse Persistence Tools
 */

public class WxRole implements java.io.Serializable {

	// Fields

	private Integer id;
	private String rolename; // 角色名
	private String remark; // 备注
	private String node; // 角色权限
	private Integer issystem; // 是否系统角色，1代表不能删除
	private Set<WxPrivilege> wxPrivileges = new HashSet<WxPrivilege>();// 当前角色对应的权限集合
	private Set<WxAdmin> wxAdmins = new HashSet<WxAdmin>();

	// Constructors

	public Set<WxAdmin> getWxAdmins() {
		return wxAdmins;
	}

	public Set<WxPrivilege> getWxPrivileges() {
		return wxPrivileges;
	}

	public void setWxPrivileges(Set<WxPrivilege> wxPrivileges) {
		this.wxPrivileges = wxPrivileges;
	}

	public void setWxAdmins(Set<WxAdmin> wxAdmins) {
		this.wxAdmins = wxAdmins;
	}

	/** default constructor */
	public WxRole() {
	}

	/** full constructor */
	public WxRole(String rolename, String remark, String node,
			Integer issystem) {
		this.rolename = rolename;
		this.remark = remark;
		this.node = node;
		this.issystem = issystem;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRolename() {
		return this.rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getNode() {
		return this.node;
	}

	public void setNode(String node) {
		this.node = node;
	}

	public Integer getIssystem() {
		return this.issystem;
	}

	public void setIssystem(Integer issystem) {
		this.issystem = issystem;
	}

}